package cn.zymall.user.service.impl;

import cn.zymall.common.model.Role;
import cn.zymall.common.model.RolePermissions;
import cn.zymall.user.mapper.RolePermissionMapper;
import cn.zymall.user.service.RolePermissionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName: RolePermissionSerivceImpl
 * @Description: TODO
 * @author: 欧泽昌
 * @date: 2020/8/23 14:44
 * @version: V1.0
 */
@Service("RolePermissionService")
public class RolePermissionSerivceImpl extends ServiceImpl<RolePermissionMapper, RolePermissions> implements RolePermissionService {
	@Autowired
	RolePermissionMapper rolePermissionMapper;
	/**
	 * @Author 欧泽昌
	 * @Description //查询角色权限,不传参查全部
	 * @Date 2020/8/25 16:00
	 * @Param [bean]
	 * @return boolean
	 **/
	@Override
	public List<RolePermissions> query(RolePermissions rolePermissions) {
		return this.rolePermissionMapper.query(rolePermissions);
	}
}
